﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DayuCode.Designer.Entity
{
    public class CodeTemplate
    {
		public long? Id { get; set; }
		public string CodeTemplateText { get; set; }
		public long? LayoutId { get; set; }
		public string CreateUser { get; set; }
		public string Summary { get; set; }
		public string FilePath { get; set; }
		public string FileParamType { get; set; }
		public int? Ordnum { get; set; }
		public string CodeType { get; set; }
		public string CreateTimeStr { get; set; }
		public string FileParamTypeCaption { get; set; }

		public List<CodeItem> CodeTypes { get; set; }
		public List<CodeItem> FileParamTypes { get; set; }

		public string CharCountText
        {
            get
            {
				int len = 0;
				if (CodeTemplateText != null) len = CodeTemplateText.Length;
				return "字符数：" + len;
            }
        }
	}
}
